<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>ImageLineHelper (PNGJ 2.1.1-SNAPSHOT API)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="ImageLineHelper (PNGJ 2.1.1-SNAPSHOT API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ImageLineHelper.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../ar/com/hjg/pngj/ImageLineByte.html" title="class in ar.com.hjg.pngj"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?ar/com/hjg/pngj/ImageLineHelper.html" target="_top">Frames</a></li>
<li><a href="ImageLineHelper.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">ar.com.hjg.pngj</div>
<h2 title="Class ImageLineHelper" class="title">Class ImageLineHelper</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>ar.com.hjg.pngj.ImageLineHelper</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">ImageLineHelper</span>
extends <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">Bunch of utility static methods to proces an image line at the pixel level.
 <p>
 WARNING: this has little testing/optimizing, and this API is not stable. some methods will probably be changed or
 removed if future releases.
 <p>
 WARNING: most methods for getting/setting values work currently only for ImageLine or ImageLineByte</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#ImageLineHelper()">ImageLineHelper</a></strong>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#clampTo_0_255(int)">clampTo_0_255</a></strong>(int&nbsp;i)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#clampTo_0_65535(int)">clampTo_0_65535</a></strong>(int&nbsp;i)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#clampTo_128_127(int)">clampTo_128_127</a></strong>(int&nbsp;x)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int[]</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#convert2rgba(ar.com.hjg.pngj.IImageLineArray, ar.com.hjg.pngj.chunks.PngChunkPLTE, ar.com.hjg.pngj.chunks.PngChunkTRNS, int[])">convert2rgba</a></strong>(<a href="../../../../ar/com/hjg/pngj/IImageLineArray.html" title="interface in ar.com.hjg.pngj">IImageLineArray</a>&nbsp;line,
            <a href="../../../../ar/com/hjg/pngj/chunks/PngChunkPLTE.html" title="class in ar.com.hjg.pngj.chunks">PngChunkPLTE</a>&nbsp;pal,
            <a href="../../../../ar/com/hjg/pngj/chunks/PngChunkTRNS.html" title="class in ar.com.hjg.pngj.chunks">PngChunkTRNS</a>&nbsp;trns,
            int[]&nbsp;buf)</code>
<div class="block">this is not very efficient, only for tests and troubleshooting</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#double2int(ar.com.hjg.pngj.ImageLineInt, double)">double2int</a></strong>(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
          double&nbsp;d)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#double2intClamped(ar.com.hjg.pngj.ImageLineInt, double)">double2intClamped</a></strong>(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
                 double&nbsp;d)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#getMaskForPackedFormats(int)">getMaskForPackedFormats</a></strong>(int&nbsp;bitDepth)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#getMaskForPackedFormatsLs(int)">getMaskForPackedFormatsLs</a></strong>(int&nbsp;bitDepth)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#getPixelARGB8(ar.com.hjg.pngj.IImageLine, int)">getPixelARGB8</a></strong>(<a href="../../../../ar/com/hjg/pngj/IImageLine.html" title="interface in ar.com.hjg.pngj">IImageLine</a>&nbsp;line,
             int&nbsp;column)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#getPixelRGB8(ar.com.hjg.pngj.IImageLine, int)">getPixelRGB8</a></strong>(<a href="../../../../ar/com/hjg/pngj/IImageLine.html" title="interface in ar.com.hjg.pngj">IImageLine</a>&nbsp;line,
            int&nbsp;column)</code>
<div class="block">integer packed R G B only for bitdepth=8! (does not check!)</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#infoFirstLastPixels(ar.com.hjg.pngj.ImageLineInt)">infoFirstLastPixels</a></strong>(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line)</code>
<div class="block">Just for basic info or debugging.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#int2double(ar.com.hjg.pngj.ImageLineInt, int)">int2double</a></strong>(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
          int&nbsp;p)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#int2doubleClamped(ar.com.hjg.pngj.ImageLineInt, int)">int2doubleClamped</a></strong>(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
                 int&nbsp;p)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#interpol(int, int, int, int, double, double)">interpol</a></strong>(int&nbsp;a,
        int&nbsp;b,
        int&nbsp;c,
        int&nbsp;d,
        double&nbsp;dx,
        double&nbsp;dy)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int[]</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#palette2rgb(ar.com.hjg.pngj.ImageLineInt, ar.com.hjg.pngj.chunks.PngChunkPLTE, int[])">palette2rgb</a></strong>(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
           <a href="../../../../ar/com/hjg/pngj/chunks/PngChunkPLTE.html" title="class in ar.com.hjg.pngj.chunks">PngChunkPLTE</a>&nbsp;pal,
           int[]&nbsp;buf)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int[]</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#palette2rgb(ar.com.hjg.pngj.ImageLineInt, ar.com.hjg.pngj.chunks.PngChunkPLTE, ar.com.hjg.pngj.chunks.PngChunkTRNS, int[])">palette2rgb</a></strong>(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
           <a href="../../../../ar/com/hjg/pngj/chunks/PngChunkPLTE.html" title="class in ar.com.hjg.pngj.chunks">PngChunkPLTE</a>&nbsp;pal,
           <a href="../../../../ar/com/hjg/pngj/chunks/PngChunkTRNS.html" title="class in ar.com.hjg.pngj.chunks">PngChunkTRNS</a>&nbsp;trns,
           int[]&nbsp;buf)</code>
<div class="block">Given an indexed line with a palette, unpacks as a RGB array, or RGBA if a non nul PngChunkTRNS chunk is passed</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int[]</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#palette2rgba(ar.com.hjg.pngj.ImageLineInt, ar.com.hjg.pngj.chunks.PngChunkPLTE, ar.com.hjg.pngj.chunks.PngChunkTRNS, int[])">palette2rgba</a></strong>(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
            <a href="../../../../ar/com/hjg/pngj/chunks/PngChunkPLTE.html" title="class in ar.com.hjg.pngj.chunks">PngChunkPLTE</a>&nbsp;pal,
            <a href="../../../../ar/com/hjg/pngj/chunks/PngChunkTRNS.html" title="class in ar.com.hjg.pngj.chunks">PngChunkTRNS</a>&nbsp;trns,
            int[]&nbsp;buf)</code>
<div class="block">Same as palette2rgbx , but returns rgba always, even if trns is null</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#scaleDown(ar.com.hjg.pngj.IImageLineArray)">scaleDown</a></strong>(<a href="../../../../ar/com/hjg/pngj/IImageLineArray.html" title="interface in ar.com.hjg.pngj">IImageLineArray</a>&nbsp;line)</code>
<div class="block">Reverse of <a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#scaleUp(ar.com.hjg.pngj.IImageLineArray)"><code>scaleUp(IImageLineArray)</code></a></div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#scaleDown(int, byte)">scaleDown</a></strong>(int&nbsp;bitdepth,
         byte&nbsp;v)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#scaleUp(ar.com.hjg.pngj.IImageLineArray)">scaleUp</a></strong>(<a href="../../../../ar/com/hjg/pngj/IImageLineArray.html" title="interface in ar.com.hjg.pngj">IImageLineArray</a>&nbsp;line)</code>
<div class="block">When the bitdepth is less than 8, the imageLine is usually returned/expected unscaled.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static byte</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#scaleUp(int, byte)">scaleUp</a></strong>(int&nbsp;bitdepth,
       byte&nbsp;v)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#setPixelRGB8(ar.com.hjg.pngj.ImageLineInt, int, int)">setPixelRGB8</a></strong>(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
            int&nbsp;col,
            int&nbsp;rgb)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#setPixelRGB8(ar.com.hjg.pngj.ImageLineInt, int, int, int, int)">setPixelRGB8</a></strong>(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
            int&nbsp;col,
            int&nbsp;r,
            int&nbsp;g,
            int&nbsp;b)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#setPixelRGBA8(ar.com.hjg.pngj.ImageLineInt, int, int)">setPixelRGBA8</a></strong>(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
             int&nbsp;col,
             int&nbsp;rgb)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#setPixelRGBA8(ar.com.hjg.pngj.ImageLineInt, int, int, int, int, int)">setPixelRGBA8</a></strong>(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
             int&nbsp;col,
             int&nbsp;r,
             int&nbsp;g,
             int&nbsp;b,
             int&nbsp;a)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#setPixelsRGB8(ar.com.hjg.pngj.ImageLineInt, int[])">setPixelsRGB8</a></strong>(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
             int[]&nbsp;rgb)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#setPixelsRGBA8(ar.com.hjg.pngj.ImageLineInt, int[])">setPixelsRGBA8</a></strong>(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
              int[]&nbsp;rgb)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#setValD(ar.com.hjg.pngj.ImageLineInt, int, double)">setValD</a></strong>(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
       int&nbsp;i,
       double&nbsp;d)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="ImageLineHelper()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ImageLineHelper</h4>
<pre>public&nbsp;ImageLineHelper()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="scaleUp(ar.com.hjg.pngj.IImageLineArray)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scaleUp</h4>
<pre>public static&nbsp;void&nbsp;scaleUp(<a href="../../../../ar/com/hjg/pngj/IImageLineArray.html" title="interface in ar.com.hjg.pngj">IImageLineArray</a>&nbsp;line)</pre>
<div class="block">When the bitdepth is less than 8, the imageLine is usually returned/expected unscaled. This method upscales it in
 place. Eg, if bitdepth=1, values 0-1 will be converted to 0-255</div>
</li>
</ul>
<a name="scaleDown(ar.com.hjg.pngj.IImageLineArray)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scaleDown</h4>
<pre>public static&nbsp;void&nbsp;scaleDown(<a href="../../../../ar/com/hjg/pngj/IImageLineArray.html" title="interface in ar.com.hjg.pngj">IImageLineArray</a>&nbsp;line)</pre>
<div class="block">Reverse of <a href="../../../../ar/com/hjg/pngj/ImageLineHelper.html#scaleUp(ar.com.hjg.pngj.IImageLineArray)"><code>scaleUp(IImageLineArray)</code></a></div>
</li>
</ul>
<a name="scaleUp(int, byte)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scaleUp</h4>
<pre>public static&nbsp;byte&nbsp;scaleUp(int&nbsp;bitdepth,
           byte&nbsp;v)</pre>
</li>
</ul>
<a name="scaleDown(int, byte)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scaleDown</h4>
<pre>public static&nbsp;byte&nbsp;scaleDown(int&nbsp;bitdepth,
             byte&nbsp;v)</pre>
</li>
</ul>
<a name="palette2rgb(ar.com.hjg.pngj.ImageLineInt, ar.com.hjg.pngj.chunks.PngChunkPLTE, ar.com.hjg.pngj.chunks.PngChunkTRNS, int[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>palette2rgb</h4>
<pre>public static&nbsp;int[]&nbsp;palette2rgb(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
                <a href="../../../../ar/com/hjg/pngj/chunks/PngChunkPLTE.html" title="class in ar.com.hjg.pngj.chunks">PngChunkPLTE</a>&nbsp;pal,
                <a href="../../../../ar/com/hjg/pngj/chunks/PngChunkTRNS.html" title="class in ar.com.hjg.pngj.chunks">PngChunkTRNS</a>&nbsp;trns,
                int[]&nbsp;buf)</pre>
<div class="block">Given an indexed line with a palette, unpacks as a RGB array, or RGBA if a non nul PngChunkTRNS chunk is passed</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>line</code> - ImageLine as returned from PngReader</dd><dd><code>pal</code> - Palette chunk</dd><dd><code>trns</code> - Transparency chunk, can be null (absent)</dd><dd><code>buf</code> - Preallocated array, optional</dd>
<dt><span class="strong">Returns:</span></dt><dd>R G B (A), one sample 0-255 per array element. Ready for pngw.writeRowInt()</dd></dl>
</li>
</ul>
<a name="palette2rgba(ar.com.hjg.pngj.ImageLineInt, ar.com.hjg.pngj.chunks.PngChunkPLTE, ar.com.hjg.pngj.chunks.PngChunkTRNS, int[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>palette2rgba</h4>
<pre>public static&nbsp;int[]&nbsp;palette2rgba(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
                 <a href="../../../../ar/com/hjg/pngj/chunks/PngChunkPLTE.html" title="class in ar.com.hjg.pngj.chunks">PngChunkPLTE</a>&nbsp;pal,
                 <a href="../../../../ar/com/hjg/pngj/chunks/PngChunkTRNS.html" title="class in ar.com.hjg.pngj.chunks">PngChunkTRNS</a>&nbsp;trns,
                 int[]&nbsp;buf)</pre>
<div class="block">Same as palette2rgbx , but returns rgba always, even if trns is null</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>line</code> - ImageLine as returned from PngReader</dd><dd><code>pal</code> - Palette chunk</dd><dd><code>trns</code> - Transparency chunk, can be null (absent)</dd><dd><code>buf</code> - Preallocated array, optional</dd>
<dt><span class="strong">Returns:</span></dt><dd>R G B (A), one sample 0-255 per array element. Ready for pngw.writeRowInt()</dd></dl>
</li>
</ul>
<a name="palette2rgb(ar.com.hjg.pngj.ImageLineInt, ar.com.hjg.pngj.chunks.PngChunkPLTE, int[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>palette2rgb</h4>
<pre>public static&nbsp;int[]&nbsp;palette2rgb(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
                <a href="../../../../ar/com/hjg/pngj/chunks/PngChunkPLTE.html" title="class in ar.com.hjg.pngj.chunks">PngChunkPLTE</a>&nbsp;pal,
                int[]&nbsp;buf)</pre>
</li>
</ul>
<a name="convert2rgba(ar.com.hjg.pngj.IImageLineArray, ar.com.hjg.pngj.chunks.PngChunkPLTE, ar.com.hjg.pngj.chunks.PngChunkTRNS, int[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>convert2rgba</h4>
<pre>public static&nbsp;int[]&nbsp;convert2rgba(<a href="../../../../ar/com/hjg/pngj/IImageLineArray.html" title="interface in ar.com.hjg.pngj">IImageLineArray</a>&nbsp;line,
                 <a href="../../../../ar/com/hjg/pngj/chunks/PngChunkPLTE.html" title="class in ar.com.hjg.pngj.chunks">PngChunkPLTE</a>&nbsp;pal,
                 <a href="../../../../ar/com/hjg/pngj/chunks/PngChunkTRNS.html" title="class in ar.com.hjg.pngj.chunks">PngChunkTRNS</a>&nbsp;trns,
                 int[]&nbsp;buf)</pre>
<div class="block">this is not very efficient, only for tests and troubleshooting</div>
</li>
</ul>
<a name="infoFirstLastPixels(ar.com.hjg.pngj.ImageLineInt)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>infoFirstLastPixels</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;infoFirstLastPixels(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line)</pre>
<div class="block">Just for basic info or debugging. Shows values for first and last pixel. Does not include alpha</div>
</li>
</ul>
<a name="getPixelRGB8(ar.com.hjg.pngj.IImageLine, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPixelRGB8</h4>
<pre>public static&nbsp;int&nbsp;getPixelRGB8(<a href="../../../../ar/com/hjg/pngj/IImageLine.html" title="interface in ar.com.hjg.pngj">IImageLine</a>&nbsp;line,
               int&nbsp;column)</pre>
<div class="block">integer packed R G B only for bitdepth=8! (does not check!)</div>
</li>
</ul>
<a name="getPixelARGB8(ar.com.hjg.pngj.IImageLine, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPixelARGB8</h4>
<pre>public static&nbsp;int&nbsp;getPixelARGB8(<a href="../../../../ar/com/hjg/pngj/IImageLine.html" title="interface in ar.com.hjg.pngj">IImageLine</a>&nbsp;line,
                int&nbsp;column)</pre>
</li>
</ul>
<a name="setPixelsRGB8(ar.com.hjg.pngj.ImageLineInt, int[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPixelsRGB8</h4>
<pre>public static&nbsp;void&nbsp;setPixelsRGB8(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
                 int[]&nbsp;rgb)</pre>
</li>
</ul>
<a name="setPixelRGB8(ar.com.hjg.pngj.ImageLineInt, int, int, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPixelRGB8</h4>
<pre>public static&nbsp;void&nbsp;setPixelRGB8(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
                int&nbsp;col,
                int&nbsp;r,
                int&nbsp;g,
                int&nbsp;b)</pre>
</li>
</ul>
<a name="setPixelRGB8(ar.com.hjg.pngj.ImageLineInt, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPixelRGB8</h4>
<pre>public static&nbsp;void&nbsp;setPixelRGB8(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
                int&nbsp;col,
                int&nbsp;rgb)</pre>
</li>
</ul>
<a name="setPixelsRGBA8(ar.com.hjg.pngj.ImageLineInt, int[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPixelsRGBA8</h4>
<pre>public static&nbsp;void&nbsp;setPixelsRGBA8(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
                  int[]&nbsp;rgb)</pre>
</li>
</ul>
<a name="setPixelRGBA8(ar.com.hjg.pngj.ImageLineInt, int, int, int, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPixelRGBA8</h4>
<pre>public static&nbsp;void&nbsp;setPixelRGBA8(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
                 int&nbsp;col,
                 int&nbsp;r,
                 int&nbsp;g,
                 int&nbsp;b,
                 int&nbsp;a)</pre>
</li>
</ul>
<a name="setPixelRGBA8(ar.com.hjg.pngj.ImageLineInt, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPixelRGBA8</h4>
<pre>public static&nbsp;void&nbsp;setPixelRGBA8(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
                 int&nbsp;col,
                 int&nbsp;rgb)</pre>
</li>
</ul>
<a name="setValD(ar.com.hjg.pngj.ImageLineInt, int, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValD</h4>
<pre>public static&nbsp;void&nbsp;setValD(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
           int&nbsp;i,
           double&nbsp;d)</pre>
</li>
</ul>
<a name="interpol(int, int, int, int, double, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>interpol</h4>
<pre>public static&nbsp;int&nbsp;interpol(int&nbsp;a,
           int&nbsp;b,
           int&nbsp;c,
           int&nbsp;d,
           double&nbsp;dx,
           double&nbsp;dy)</pre>
</li>
</ul>
<a name="int2double(ar.com.hjg.pngj.ImageLineInt, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>int2double</h4>
<pre>public static&nbsp;double&nbsp;int2double(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
                int&nbsp;p)</pre>
</li>
</ul>
<a name="int2doubleClamped(ar.com.hjg.pngj.ImageLineInt, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>int2doubleClamped</h4>
<pre>public static&nbsp;double&nbsp;int2doubleClamped(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
                       int&nbsp;p)</pre>
</li>
</ul>
<a name="double2int(ar.com.hjg.pngj.ImageLineInt, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>double2int</h4>
<pre>public static&nbsp;int&nbsp;double2int(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
             double&nbsp;d)</pre>
</li>
</ul>
<a name="double2intClamped(ar.com.hjg.pngj.ImageLineInt, double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>double2intClamped</h4>
<pre>public static&nbsp;int&nbsp;double2intClamped(<a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj">ImageLineInt</a>&nbsp;line,
                    double&nbsp;d)</pre>
</li>
</ul>
<a name="clampTo_0_255(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clampTo_0_255</h4>
<pre>public static&nbsp;int&nbsp;clampTo_0_255(int&nbsp;i)</pre>
</li>
</ul>
<a name="clampTo_0_65535(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clampTo_0_65535</h4>
<pre>public static&nbsp;int&nbsp;clampTo_0_65535(int&nbsp;i)</pre>
</li>
</ul>
<a name="clampTo_128_127(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clampTo_128_127</h4>
<pre>public static&nbsp;int&nbsp;clampTo_128_127(int&nbsp;x)</pre>
</li>
</ul>
<a name="getMaskForPackedFormats(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaskForPackedFormats</h4>
<pre>public static&nbsp;int&nbsp;getMaskForPackedFormats(int&nbsp;bitDepth)</pre>
</li>
</ul>
<a name="getMaskForPackedFormatsLs(int)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getMaskForPackedFormatsLs</h4>
<pre>public static&nbsp;int&nbsp;getMaskForPackedFormatsLs(int&nbsp;bitDepth)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ImageLineHelper.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../ar/com/hjg/pngj/ImageLineByte.html" title="class in ar.com.hjg.pngj"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../ar/com/hjg/pngj/ImageLineInt.html" title="class in ar.com.hjg.pngj"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?ar/com/hjg/pngj/ImageLineHelper.html" target="_top">Frames</a></li>
<li><a href="ImageLineHelper.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2014. All rights reserved.</small></p>
</body>
</html>
